package com.itheima.log;

import com.itheima.client.UserClientFallback;
import feign.Logger;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/*

 */
@EnableFeignClients(basePackages = "com.itheima")
@Configuration
public class LogConfig {

    @Bean
    public Logger.Level level(){
        return Logger.Level.FULL;
    }

    @Bean
    public UserClientFallback userClientFallback(){
        return new UserClientFallback();
    }
}
